package main

import "fmt"

type human struct {
	Sex string
}

type person struct {
	Name string
	Age int
	Contact struct{
		Phone, City string
	}
	human
}


func main() {
	a:= person{}
	a.Name = "lck"
	a.Age = 25
	a.Contact.City="beijing"
	fmt.Println(a)
	b := a
	fmt.Println(&b)
	fmt.Println(&a)

	p := person{Name:"zhangsan",human:human{Sex:"male"}}
	fmt.Println(p)
}
